home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Australian Personal Computer 2002 November
/
CD 1
/
APC0211D1.ISO
/
workshop
/
prog
/
files
/
ActivePerl-5.6.1.633-MSWin32.msi
/
_06d844ffe65784ddbf954a11ee179625
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2001-09-04
|
431 b
|
16 lines
#!/usr/bin/perl
while (<>) {
next unless ($mode,$file) = /^begin\s*(\d*)\s*(\S*)/;
open(OUT,"> $file") || die "Can't create $file: $!\n";
while (<>) {
last if /^end/;
next if /[a-z]/;
next unless int((((ord() - 32) & 077) + 2) / 3) ==
int(length() / 4);
print OUT unpack("u", $_);
}
chmod oct($mode), $file;
eof() && die "Missing end: $file may be truncated.\n";
}